//
//  OCAddOperator.m
//  CaculatorTest
//
//  Created by rain on 2018/4/24.
//  Copyright © 2018年 rain. All rights reserved.
//

#import "OCAddOperator.h"

@implementation OCAddOperator

- (float)calcuate {
    float result = self.numberA + self.numberB;
    return result;
}

+ (id)sharedInstance {
    static dispatch_once_t predicate;
    static id instance = nil;
    
    dispatch_once(&predicate, ^{
        instance = [[self alloc] init];
    });
    
    return instance;
}
@end


